package com.demo.user.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

/**
 * @author zhaoxinguo on 2017/9/13.
 */
@Data
@Table("auth_user")
public class AuthUser {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.flexId)
    private long id;

    @Column("username")
    private String username;

    @Column("password")
    private String password;
}
